export default function (persons: Record<string, string>, string: string) {
  if (persons) {
    if (string.includes("@")) {
      const name = string.split("@")[0];
      return persons[name];;
    }
  }

  return string;
}